package fb4java.beans;

import org.json.JSONException;
import org.json.JSONObject;

public class Link {
    public String url;
    public int shareCount;
    public int likeCount;
    public int commentCount;
    public int totalCount;
    public int clickCount;
    public String nomalizedUrl;

    public Link() {
    }

    public Link(JSONObject obj) throws JSONException {
	initByJSONObject(obj);
    }

    public void initByJSONObject(JSONObject obj) throws JSONException {
	url = obj.getString("url");
	shareCount = obj.getInt("share_count");
	likeCount = obj.getInt("like_count");
	commentCount = obj.getInt("comment_count");
	totalCount = obj.getInt("total_count");
	clickCount = obj.getInt("click_count");
	nomalizedUrl = obj.getString("normalized_url");
    }

}
